package com.multi.tool.collection;

import com.google.common.base.Stopwatch;

import java.util.concurrent.TimeUnit;

public class GuavaDemoTest {

    public static void main(String[] args) {
        Stopwatch stopwatch = Stopwatch.createStarted();
        try {
            TimeUnit.SECONDS.sleep(1);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("cost=" + stopwatch.elapsed(TimeUnit.SECONDS));
    }
}
